package com.ruandi.test13;

import com.ruandi.test13.Programmer;

public class Designer extends Programmer {
    //属性
    private int money=15000;

    //构造参数
    public Designer() {
    }
    public Designer(String num, String name, int age, int salary, String language, int money) {
        super(num, name, age, salary, language);
        this.money = money;
    }

    //方法
    @Override
    public void getInfo(){
        System.out.println("编号："+getNum()+"，姓名："+getName()+"，年龄："+getAge()+"，薪资："+getSalary()+"，编程语言："+super.getLanguage()+"，奖金："+money);
    }

    //get set

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
